package o2o.dao.PO.order;

/**
 * Created with IntelliJ IDEA.
 * User: yangtongkuan
 * Date: 2019/2/21
 * Time: 10:40
 * Description: No Description
 */
public class OrderCancelGoodsInfo {

//
//    CREATE TABLE `order_cancel_goods` (
//            `id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '标识  订单商品信息',
//            `orderNo` VARCHAR(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '退款订单编号',
//            `parentOrderNo` VARCHAR(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '原订单编号',
//            `shopId` INT(11) NOT NULL COMMENT '店铺Id',
//            `goodsId` INT(11) NOT NULL COMMENT '商品Id',
//            `goodsSpecsId` INT(11) NOT NULL COMMENT '商品类型Id',
//            `goodsPrice` DECIMAL(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品价格',
//            `packetPrice` DECIMAL(10,2) DEFAULT '0.00' COMMENT '餐盒费',
//            `upc` BIGINT(16) DEFAULT NULL COMMENT '商品统一编码（条形码）',
//            `backTotalCount` INT(4) NOT NULL COMMENT '购买数量',
//            `backTotalGoodsPrice` DECIMAL(10,2) NOT NULL COMMENT '商品总价（不含餐盒费）',
//            `backTotalPacketPrice` DECIMAL(10,2) DEFAULT '0.00' COMMENT '餐盒费总价',
//            `backTotalMoney` DECIMAL(10,2) DEFAULT '0.00' COMMENT '含打包费总价',
//            `isBackApply` INT(1) NULL DEFAULT '0' COMMENT '申请部分商品退款 1申请退款 2申请退款成功 3申请退款未通过',
//            `delFlag` INT(1) NOT NULL DEFAULT '0' COMMENT '是否已删除(0未删除,1已删除)',
//            `createUser` VARCHAR(22) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '创建者',
//            `createTime` BIGINT(15) NOT NULL COMMENT '创建日期  141231212423423时间戳毫秒级标识',
//            `updateUser` VARCHAR(22) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '最后更新着',
//            `updateTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
//            `name` VARCHAR(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '商品名称',
//            `goodsAttrVals` VARCHAR(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '商品属性值，多个用+',
//            `specs` VARCHAR(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '商品规格名称',
//            `imageUrl` VARCHAR(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '商品图片',
//            `descs` VARCHAR(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '商品描述',
//    PRIMARY KEY (`id`),
//    KEY `order_goods_orderno_index` (`orderNo`)
//            ) ENGINE=INNODB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci

    private Long id;
    private String orderNo;
    private String parentOrderNo;
    private Long shopId;
    private Long goodsId;
    private Long goodsSpecsId;
    private Double goodsPrice;
    private Double packetPrice;
    private Long upc;
    private Integer backTotalCount;
    private Double backTotalGoodsPrice;
    private Double backTotalPacketPrice;
    private Double backTotalMoney;
    private Integer isBackApply;
    private int delFlag = 0;
    private String createUser;
    private Long createTime;
    private String updateUser;
    private String updateTime;
    private String name;
    private String goodsAttrVals;
    private String specs;
    private String imageUrl;
    private String descs;
    private Long parentOrderGoodsId; // 对应订单商品信息

    public Long getParentOrderGoodsId() {
        return parentOrderGoodsId;
    }

    public OrderCancelGoodsInfo setParentOrderGoodsId(Long parentOrderGoodsId) {
        this.parentOrderGoodsId = parentOrderGoodsId;
        return this;
    }

    public Long getId() {
        return id;
    }

    public OrderCancelGoodsInfo setId(Long id) {
        this.id = id;
        return this;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public OrderCancelGoodsInfo setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    public String getParentOrderNo() {
        return parentOrderNo;
    }

    public OrderCancelGoodsInfo setParentOrderNo(String parentOrderNo) {
        this.parentOrderNo = parentOrderNo;
        return this;
    }

    public Long getShopId() {
        return shopId;
    }

    public OrderCancelGoodsInfo setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public OrderCancelGoodsInfo setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
        return this;
    }

    public Long getGoodsSpecsId() {
        return goodsSpecsId;
    }

    public OrderCancelGoodsInfo setGoodsSpecsId(Long goodsSpecsId) {
        this.goodsSpecsId = goodsSpecsId;
        return this;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public OrderCancelGoodsInfo setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
        return this;
    }

    public Double getPacketPrice() {
        return packetPrice;
    }

    public OrderCancelGoodsInfo setPacketPrice(Double packetPrice) {
        this.packetPrice = packetPrice;
        return this;
    }

    public Long getUpc() {
        return upc;
    }

    public OrderCancelGoodsInfo setUpc(Long upc) {
        this.upc = upc;
        return this;
    }

    public Integer getBackTotalCount() {
        return backTotalCount;
    }

    public OrderCancelGoodsInfo setBackTotalCount(Integer backTotalCount) {
        this.backTotalCount = backTotalCount;
        return this;
    }

    public Double getBackTotalGoodsPrice() {
        return backTotalGoodsPrice;
    }

    public OrderCancelGoodsInfo setBackTotalGoodsPrice(Double backTotalGoodsPrice) {
        this.backTotalGoodsPrice = backTotalGoodsPrice;
        return this;
    }

    public Double getBackTotalPacketPrice() {
        return backTotalPacketPrice;
    }

    public OrderCancelGoodsInfo setBackTotalPacketPrice(Double backTotalPacketPrice) {
        this.backTotalPacketPrice = backTotalPacketPrice;
        return this;
    }

    public Double getBackTotalMoney() {
        return backTotalMoney;
    }

    public OrderCancelGoodsInfo setBackTotalMoney(Double backTotalMoney) {
        this.backTotalMoney = backTotalMoney;
        return this;
    }

    public Integer getIsBackApply() {
        return isBackApply;
    }

    public OrderCancelGoodsInfo setIsBackApply(Integer isBackApply) {
        this.isBackApply = isBackApply;
        return this;
    }

    public int getDelFlag() {
        return delFlag;
    }

    public OrderCancelGoodsInfo setDelFlag(int delFlag) {
        this.delFlag = delFlag;
        return this;
    }

    public String getCreateUser() {
        return createUser;
    }

    public OrderCancelGoodsInfo setCreateUser(String createUser) {
        this.createUser = createUser;
        return this;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public OrderCancelGoodsInfo setCreateTime(Long createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public OrderCancelGoodsInfo setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
        return this;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public OrderCancelGoodsInfo setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public String getName() {
        return name;
    }

    public OrderCancelGoodsInfo setName(String name) {
        this.name = name;
        return this;
    }

    public String getGoodsAttrVals() {
        return goodsAttrVals;
    }

    public OrderCancelGoodsInfo setGoodsAttrVals(String goodsAttrVals) {
        this.goodsAttrVals = goodsAttrVals;
        return this;
    }

    public String getSpecs() {
        return specs;
    }

    public OrderCancelGoodsInfo setSpecs(String specs) {
        this.specs = specs;
        return this;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public OrderCancelGoodsInfo setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
        return this;
    }

    public String getDescs() {
        return descs;
    }

    public OrderCancelGoodsInfo setDescs(String descs) {
        this.descs = descs;
        return this;
    }
}